package com.blank.white.common.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.LoadingCache;
import lombok.Getter;
import org.springframework.cache.caffeine.CaffeineCache;

@Getter
public class CaffeineCachePlus<K, V> extends CaffeineCache {
    private final String loadingCacheName;

    private final com.github.benmanes.caffeine.cache.LoadingCache<K, V> loadingCache;

    public CaffeineCachePlus(String name, LoadingCache<K, V> loadingCache) {
        super(name, (Cache<Object, Object>) loadingCache);
        this.loadingCacheName = name;
        this.loadingCache = loadingCache;
    }
}